home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / gwuada_8.zip / MAKEFILE < prev    next >
Text File  |  1993-08-29  |  3KB  |  97 lines

  1. #
  2. #    GWMON Parallel Ada Monitor for 386/486 PCs   
  3. #    Copyright (C) 1993, Charles W. Kann  & Michael Bliss Feldman
  4. #                        ckann@seas.gwu.edu mfeldman@seas.gwu.edu
  5. #    This program is free software; you can redistribute it and/or modify
  6. #    it under the terms of the GNU General Public License as published by
  7. #    the Free Software Foundation; either version 2 of the License.
  8. #
  9. #    This program is distributed in the hope that it will be useful,
  10. #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. #    GNU General Public License for more details.
  13. #
  14. #    You should have received a copy of the GNU General Public License
  15. #    along with this program; if not, write to the Free Software
  16. #    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. #
  18. #
  19.  
  20.  
  21. #
  22. # This makefile creates the GWUMON program.  GWUMON is a run time shell
  23. # which allows a user to see the progress of an Ada program as it is 
  24. # executing.  It is built around the NYU Ada 83 (AdaED) system.
  25. #
  26. # There are two variables which have to be set before this makefile is 
  27. # used.  They are:
  28. #    NS = Where the NYU AdaED source is stored.
  29. #    GW = Where the GWAda source is stored.
  30.  
  31. SHELL=/bin/sh
  32.  
  33. CC=icc
  34. #CFLAGS=-O3 -DIBM_PC
  35. CFLAGS=-d0 -O3 -DMONITOR -DIBM_PC -DGWUMON
  36.  
  37. LINKER= $(CC)
  38. NS=\nyusrc
  39. GW=\gwada
  40. ADAED=d:\adaed
  41.  
  42. .SUFFIXES:
  43. .SUFFIXES: .obj .c
  44.  
  45. .c.obj:
  46.     $(CC)$(CCVAR) $(CFLAGS) -c $<  
  47.  
  48. EXECS = gwumon.exe
  49.  
  50. all: $(EXECS) 
  51.  
  52. install : all
  53.  
  54. #---------------------------#
  55. # adaexec FILES AND ACTIONS #
  56. #---------------------------#
  57.  
  58. INT_OBJS = imain.obj inta.obj intb.obj predef4.obj tasking.obj mon_int.obj \
  59.     cwkgraph.obj cwktask.obj cwkfile.obj cwkform.obj cwkfpr.obj \
  60.     cwkblock.obj mon_glob.obj gwload.obj imisc.obj
  61.  
  62.  
  63. $(EXECS): $(NS)/ivars.c   $(INT_OBJS)
  64.     $(LINKER) -n -e $@ $(LFLAGS) @gwumon.lnk  d:\intelc\lib\graphics.lib
  65.     copy $@ $(ADAED)
  66.  
  67. #------------------------------------------------------------------------------#
  68. # These executables are made from NYU Ada source file.  However, we don't want
  69. # GWUMON defines in Adaexec.exe.  So therefore, these routines are recompiled
  70. # into this directory with the GWUMON definition.  Only one source file is
  71. # therefore needed, but we have two objects generated depending on the compile.
  72. #------------------------------------------------------------------------------#
  73.  
  74. imain.obj:    $(NS)/imain.c
  75.     $(CC)$(CCVAR) $(CFLAGS) -c $(NS)\imain.c
  76. inta.obj:    $(NS)/inta.c
  77.     $(CC)$(CCVAR) $(CFLAGS) -c $(NS)\inta.c
  78. intb.obj:    $(NS)/intb.c
  79.     $(CC)$(CCVAR) $(CFLAGS) -c $(NS)\intb.c
  80. predef4.obj:    $(NS)/predef4.c
  81.     $(CC)$(CCVAR) $(CFLAGS) -c $(NS)\predef4.c
  82. tasking.obj:    $(NS)/tasking.c
  83.     $(CC)$(CCVAR) $(CFLAGS) -c $(NS)\tasking.c
  84. imisc.obj:    $(NS)/imisc.c
  85.     $(CC)$(CCVAR) $(CFLAGS) -c $(NS)\imisc.c
  86.  
  87. #----------------------------------------------------------------------------#
  88. # NOTE:  This rule is needed because GWAda defines a load file, as does
  89. # NYU Ada.
  90. #----------------------------------------------------------------------------#
  91.  
  92. gwload.obj:    $(GW)\load.c
  93.     copy $(GW)\load.c gwload.c
  94.     $(CC)$(CCVAR) $(CFLAGS) -c gwload.c
  95.     del gwload.c
  96.